Repository navigation
Conversation
…e in CI (#13500) The Android app is the site in Chrome, and the site already works offline (service worker cache, outbox, Background Sync) — but that had only ever been checked in a desktop browser, never on a device. This adds the check the issue asks for, and writes what Android does differently into the README. - pm-console-android-offline workflow (nightly 07:17 UTC, manual): builds the APK against the demo edge on the runner, starts the demo edge, starts an emulator, and drives the app: open, aeroplane mode, open again from the icon, answer a question, swipe the app away, network back — then checks the demo edge saw that answer exactly once. - offline-check.sh: the adb driver for the steps above. - The APK builds against a demo site: -PpmConsoleSite / PM_CONSOLE_SITE, defaulting to https://pm.security.cab, so the release build is unchanged. A demo site is plain http, so the app opens as a Custom Tab rather than a verified TWA there. - The demo host records every canned action it runs to PM_CONSOLE_DEMO_ACT_LOG (one JSON line each), the witness the driver counts; unset, the demo writes nothing. Covered by test/demo-act-log.test.ts. - README: what Android does differently under 'With no connection' (the sync survives the app being swiped away; the undo pause is the page's own), and the check named in both READMEs. Refs #13500
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Member
Author
|
Verification update:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
The Android app is the site in Chrome, and the site already works offline (service worker cache, outbox, Background Sync) — but that had only ever been checked in a desktop browser, never on a device. This adds the check #13500 asks for, and writes what Android does differently into the README.
.github/workflows/pm-console-android-offline.yml(nightly 07:17 UTC + manual, per the CI policy — no push trigger): builds the APK against the demo edge on the runner, starts the demo edge, starts an emulator, and drives the app — open, aeroplane mode, open again from the icon, answer a question, swipe the app away, network back — then checks the demo edge saw that answer exactly once.pm-stack/console/android/offline-check.sh: the adb driver for the steps above (uiautomator taps, aeroplane mode viacmd connectivity, swipe-away via recents, act-log count).-PpmConsoleSite/PM_CONSOLE_SITE, defaulting tohttps://pm.security.cab, so the release build is unchanged. A demo site is plain http, so the app opens there as a Custom Tab rather than a verified TWA; the web content under test is the same.PM_CONSOLE_DEMO_ACT_LOGnames a file the demo appends one JSON line per canned action to — the witness the driver counts. Unset, the demo writes nothing. Covered bytest/demo-act-log.test.ts.Verification
test/demo-act-log.test.tspasses locally (1 pass); the full console suite is running remotely: developing-today/fleet#45246603296 (bun testinpm-stack/console).question.answerPOST through the edge returns{"ok":true}and appends exactly the expected JSON line.offline-check.sh. A first attempt (45246862029) failed in 70ms on dispatch quoting, not on the check — the command is re-dispatched with no double quotes.gh workflow runcannot dispatch the new workflow from this branch — GitHub only dispatches workflows that exist on the default branch. The first run ofpm-console-android-offline.ymlhappens after merge (nightly, or by hand); the fleet-command run above is the pre-merge evidence for the same steps.Refs #13500
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.